package leetcode.other;

import leetcode.other.comon.OtherUtils;

class Solution2409 {
    public int countDaysTogether(String arriveAlice, String leaveAlice, String arriveBob, String leaveBob) {
        return OtherUtils.countDaysTogether(arriveAlice, leaveAlice, arriveBob, leaveBob);
    }
}

public class leetcode2409 {
    public static void main(String[] args) {
        Solution2409 solution2409 = new Solution2409();
        String arriveAlice = "08-15";
        String leaveAlice = "08-18";
        String arriveBob = "08-16";
        String leaveBob = "08-19";
        System.out.println(solution2409.countDaysTogether(arriveAlice, leaveAlice, arriveBob, leaveBob));

        arriveAlice = "10-01";
        leaveAlice = "10-31";
        arriveBob = "11-01";
        leaveBob = "12-31";
        System.out.println(solution2409.countDaysTogether(arriveAlice, leaveAlice, arriveBob, leaveBob));
    }
}
